From: Jasper St. Pierre Date: Wed, 13 Nov 2013 18:20:08 +0000 (-0500) Subject: shellDBus: Fix error message returned from Eval X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3057 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e12bf8daedacabcc8470a07682d1cbec08e1da6c;p=gnome-shell.git shellDBus: Fix error message returned from Eval Annoyingly, `message` on errors are non-enumerable, which mean that JSON.stringify on the error will produce `{}`. Just cast it to a string for now. --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 609b1c168..79ff46cba 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -119,7 +119,7 @@ const GnomeShell = new Lang.Class({ returnValue = ''; success = true; } catch (e) { - returnValue = JSON.stringify(e); + returnValue = '' + e; success = false; } return [success, returnValue];